package com.dsg;

import com.dsg.config.DataSourceConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication(scanBasePackages = "com.dsg")
@EnableConfigurationProperties({DataSourceConfig.class})//开启配置文件映射
@EnableSwagger2//开启swagger2接口测试
public class WebApplication {

    public static void main(String[] args) {

        SpringApplication.run(WebApplication.class);

    }

}
